package com.yaorange.teaching.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.teaching.mapper.YaExamDetailMapper;
import com.yaorange.teaching.domain.YaExamDetail;
import com.yaorange.teaching.service.IYaExamDetailService;

/**
 * 学生成绩详情Service业务层处理
 *
 * @author ruoyi
 * @date 2024-11-13
 */
@Service
public class YaExamDetailServiceImpl extends ServiceImpl<YaExamDetailMapper, YaExamDetail> implements IYaExamDetailService
{
    @Autowired
    private YaExamDetailMapper yaExamDetailMapper;

    /**
     * 查询学生成绩详情
     *
     * @param id 学生成绩详情主键
     * @return 学生成绩详情
     */
    @Override
    public YaExamDetail selectYaExamDetailById(Long id)
    {
        return yaExamDetailMapper.selectYaExamDetailById(id);
    }

    /**
     * 查询学生成绩详情列表
     *
     * @param yaExamDetail 学生成绩详情
     * @return 学生成绩详情
     */
    @Override
    public List<YaExamDetail> selectYaExamDetailList(YaExamDetail yaExamDetail)
    {
        return yaExamDetailMapper.selectYaExamDetailList(yaExamDetail);
    }

    /**
     * 新增学生成绩详情
     *
     * @param yaExamDetail 学生成绩详情
     * @return 结果
     */
    @Override
    public int insertYaExamDetail(YaExamDetail yaExamDetail)
    {
        return yaExamDetailMapper.insertYaExamDetail(yaExamDetail);
    }

    /**
     * 修改学生成绩详情
     *
     * @param yaExamDetail 学生成绩详情
     * @return 结果
     */
    @Override
    public int updateYaExamDetail(YaExamDetail yaExamDetail)
    {
        return yaExamDetailMapper.updateYaExamDetail(yaExamDetail);
    }

    /**
     * 批量删除学生成绩详情
     *
     * @param ids 需要删除的学生成绩详情主键
     * @return 结果
     */
    @Override
    public int deleteYaExamDetailByIds(Long[] ids)
    {
        return yaExamDetailMapper.deleteYaExamDetailByIds(ids);
    }

    /**
     * 删除学生成绩详情信息
     *
     * @param id 学生成绩详情主键
     * @return 结果
     */
    @Override
    public int deleteYaExamDetailById(Long id)
    {
        return yaExamDetailMapper.deleteYaExamDetailById(id);
    }
}
